package com.fosung.frame.tsdemo.front.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fosung.frame.common.persistence.annotation.MyBatisDao;
import com.fosung.frame.modules.cms.entity.Category;
import com.fosung.frame.modules.sys.entity.User;
import com.fosung.frame.tsdemo.entity.meeting.Meeting;
import com.fosung.frame.tsdemo.entity.module.Module;
import com.fosung.frame.tsdemo.entity.notice.Notice;
import com.fosung.frame.tsdemo.entity.rulemodule.RuleModule;

@MyBatisDao
public interface AppDao {
	
	public User getUserByName(@Param("loginName")String loginName);
	
	public List<Category> findCategoryList(@Param("module")String module);
	
	public RuleModule getRuleModuleByUserId(@Param("userId")String userId);
	
	public List<Notice> findNoticeList(@Param("categoryId")String categoryId,@Param("userId")String userId);
	
	public List<Notice> findNoticeBanner(@Param("categoryId")String categoryId,@Param("userId")String userId);
	
	public List<Category> queryCategoryList(@Param("categoryId")String categoryId);
	
	public List<Module> queryModuleList(@Param("userId")String userId);
	
	public List<Meeting> findMeetingList(@Param("categoryId")String categoryId,@Param("userId")String userId);
}
